import http from '@/api/request';
import store from '@/store'
export function fetchPermission() {

}

export function loginAPI(data) {

    return http.post('login', data)

}

export function getPermissionAPI(data) {


    return http.post('permission', store.state.UserToken)

}

export function getRoutesAPI(params) {


    return http.get('routers', store.state.UserToken)

}